<%-- 
    Document   : CriarPessoa
    Created on : Feb 27, 2010, 5:09:04 PM
    Author     : bruno
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Cadastro de Pessoas</title>
    </head>
    <body>

    <h1>Cadastro de Pessoas</h1>

    <form id="criarPessoaForm" action="CriarPessoa" method="post">
    <table>
        <tr><td>Nome</td><td><input type="text" id = "name" name="name" /></td></tr>
        <c:forEach var="perfil" begin="0" items="${requestScope.perfisList}">
            <tr>
                <td><input type="checkbox" name="${perfil.id}" value="${perfil.id}" />
                    ${perfil.name}<br /></td>
            </tr>
        </c:forEach>
    </table>
    <input type="submit" id="CreateRecord" value="CreateRecord" />
    </form>
    <a href="index.jsp"><strong>Voltar para o inicio</strong></a>
</body>
</html>

